﻿<%@ Page Language="C#" MasterPageFile="~/education.master" AutoEventWireup="true" CodeFile="edulearn.aspx.cs" Inherits="edulearn" Title="Untitled Page" %>

<%@ Register Assembly="Infragistics2.WebUI.UltraWebGrid.v7.3, Version=7.3.20073.38, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
    Namespace="Infragistics.WebUI.UltraWebGrid" TagPrefix="igtbl" %>

<%@ Register Assembly="Infragistics2.WebUI.Misc.v7.3, Version=7.3.20073.38, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
    Namespace="Infragistics.WebUI.Misc" TagPrefix="igmisc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="EduContent" Runat="Server">
    <table style="width: 100%; height: 100%" __designer:mapid="7ee">
        <tr __designer:mapid="7ef">
            <td align="left" valign="top" __designer:mapid="7f0">
                &nbsp;<igtbl:ultrawebgrid id="UltraWebGrid1" runat="server" 
                    datasourceid="SqlDataSource1" width="100%" DataKeyField="CourDocumentID">
                    <Bands __designer:dtid="14355223812243483">
                        <igtbl:UltraGridBand __designer:dtid="14355223812243484" 
                            DataKeyField="CourDocumentID">
                            <AddNewRow View="NotSet" Visible="NotSet" __designer:dtid="14355223812243485">
                            </AddNewRow>
                            <Columns __designer:dtid="14355223812243486">
                                <igtbl:TemplatedColumn>
                                    <CellTemplate>
                                        <asp:HyperLink __designer:dtid="14355223812243501" ID="HyperLink1" runat="server" NavigateUrl='<%# GetNavigateUrl(Container.DataItem) %>'>查看文件</asp:HyperLink>
                                    </CellTemplate>
                                    <HeaderTemplate>
                                    </HeaderTemplate>
                                    <Header Caption="">
                                    </Header>
                                </igtbl:TemplatedColumn>
                                <igtbl:UltraGridColumn BaseColumnName="CourDocumentID" DataType="System.Int32" 
                                    Hidden="True" IsBound="True" Key="CourDocumentID">
                                    <header caption="CourDocumentID">
                                        <rowlayoutcolumninfo originx="1" />
                                    </header>
                                    <footer>
                                        <rowlayoutcolumninfo originx="1" />
                                    </footer>
                                </igtbl:UltraGridColumn>
                                <igtbl:UltraGridColumn BaseColumnName="课程资料名" IsBound="True" Key="课程资料名" 
                                    Width="500px">
                                    <header caption="课程资料名">
                                        <rowlayoutcolumninfo originx="2" />
                                    </header>
                                    <footer>
                                        <rowlayoutcolumninfo originx="2" />
                                    </footer>
                                </igtbl:UltraGridColumn>
                            </Columns>
                        </igtbl:UltraGridBand>
                    </Bands>
                    <DisplayLayout Version="4.00" AllowSortingDefault="OnClient" 
                        StationaryMargins="Header" AllowColSizingDefault="Free" 
                        StationaryMarginsOutlookGroupBy="True" HeaderClickActionDefault="SortMulti" 
                        Name="UltraWebGrid1" BorderCollapseDefault="Separate" RowSelectorsDefault="No" 
                        TableLayout="Fixed" RowHeightDefault="20px" AllowColumnMovingDefault="OnServer" 
                        SelectTypeRowDefault="Extended" __designer:dtid="14355223812243514">
                        <GroupByBox __designer:dtid="14355223812243515">
                            <BoxStyle BorderColor="Window" BackColor="ActiveBorder" __designer:dtid="14355223812243516">
                            </BoxStyle>
                        </GroupByBox>
                        <GroupByRowStyleDefault BorderColor="Window" BackColor="Control" __designer:dtid="14355223812243517">
                        </GroupByRowStyleDefault>
                        <ActivationObject BorderWidth="" BorderColor="" __designer:dtid="14355223812243518">
                        </ActivationObject>
                        <FooterStyleDefault BorderWidth="1px" BorderStyle="Solid" BackColor="LightGray" __designer:dtid="14355223812243519">
                            <BorderDetails ColorTop="White" WidthLeft="1px" WidthTop="1px" ColorLeft="White" __designer:dtid="14355223812243520">
                            </BorderDetails>
                        </FooterStyleDefault>
                        <RowStyleDefault BorderWidth="1px" BorderColor="Silver" BorderStyle="Solid" Font-Size="8.25pt" Font-Names="Microsoft Sans Serif" BackColor="Window" __designer:dtid="14355223812243521">
                            <BorderDetails ColorTop="Window" ColorLeft="Window" __designer:dtid="14355223812243522">
                            </BorderDetails>
                            <Padding Left="3px" __designer:dtid="14355223812243523">
                            </Padding>
                        </RowStyleDefault>
                        <FilterOptionsDefault __designer:dtid="14355223812243524">
                            <FilterOperandDropDownStyle BorderWidth="1px" BorderColor="Silver" BorderStyle="Solid" Font-Size="11px" Font-Names="Verdana,Arial,Helvetica,sans-serif" BackColor="White" CustomRules="overflow:auto;" __designer:dtid="14355223812243525">
                                <Padding Left="2px" __designer:dtid="14355223812243526">
                                </Padding>
                            </FilterOperandDropDownStyle>
                            <FilterHighlightRowStyle ForeColor="White" BackColor="#151C55" __designer:dtid="14355223812243527">
                            </FilterHighlightRowStyle>
                            <FilterDropDownStyle BorderWidth="1px" BorderColor="Silver" BorderStyle="Solid" Font-Size="11px" Font-Names="Verdana,Arial,Helvetica,sans-serif" BackColor="White" Width="200px" Height="300px" CustomRules="overflow:auto;" __designer:dtid="14355223812243528">
                                <Padding Left="2px" __designer:dtid="14355223812243529">
                                </Padding>
                            </FilterDropDownStyle>
                        </FilterOptionsDefault>
                        <HeaderStyleDefault HorizontalAlign="Left" BorderStyle="Solid" BackColor="LightGray" __designer:dtid="14355223812243530">
                            <BorderDetails ColorTop="White" WidthLeft="1px" WidthTop="1px" ColorLeft="White" __designer:dtid="14355223812243531">
                            </BorderDetails>
                        </HeaderStyleDefault>
                        <EditCellStyleDefault BorderWidth="0px" BorderStyle="None" __designer:dtid="14355223812243532">
                        </EditCellStyleDefault>
                        <FrameStyle BorderWidth="1px" BorderColor="InactiveCaption" BorderStyle="Solid" 
                            Font-Size="8.25pt" Font-Names="Microsoft Sans Serif" BackColor="Window" 
                            Width="100%" __designer:dtid="14355223812243533">
                        </FrameStyle>
                        <Pager MinimumPagesForDisplay="2" __designer:dtid="14355223812243534">
                            <PagerStyle BorderWidth="1px" BorderStyle="Solid" BackColor="LightGray" __designer:dtid="14355223812243535">
                            <BorderDetails ColorTop="White" WidthLeft="1px" WidthTop="1px" ColorLeft="White" __designer:dtid="14355223812243536">
                            </BorderDetails>
                            </PagerStyle>
                        </Pager>
                        <AddNewBox Hidden="False" __designer:dtid="14355223812243537">
                            <BoxStyle BorderWidth="1px" BorderColor="InactiveCaption" BorderStyle="Solid" BackColor="Window" __designer:dtid="14355223812243538">
                                <BorderDetails ColorTop="White" WidthLeft="1px" WidthTop="1px" ColorLeft="White" __designer:dtid="14355223812243539">
                                </BorderDetails>
                            </BoxStyle>
                        </AddNewBox>
                    </DisplayLayout>
                </igtbl:ultrawebgrid>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:smsConnectionString %>"
                            
                    SelectCommand="SELECT DocumentsInCourse.CourDocumentID, CourseDocumentInfo.CourDocumentName AS 课程资料名 FROM DocumentsInCourse INNER JOIN CourseDocumentInfo ON DocumentsInCourse.CourDocumentID = CourseDocumentInfo.CourDocumentID WHERE (CourseDocumentInfo.IsDeleted &lt;&gt; 1) AND (DocumentsInCourse.CourseID = @CourseID)">
                    <SelectParameters>
                        <asp:QueryStringParameter Name="CourseID" QueryStringField="CourseID" />
                    </SelectParameters>
                </asp:SqlDataSource>
            </td>
        </tr>
    </table>
</asp:Content>

